package com.mzj.saas.mservice.roles.entity;

import com.mzj.saas.commons.IdEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/*
 *角色组表
 */
@Entity
@Table(name = "saas_user_role_ref")
public class UserRoleRef extends IdEntity{
    /*
     *用户Id
     */
    @Column(name = "user_id", nullable = true)
    private String userId;
    /*
     *角色Id
     */
    @Column(name = "role_id", nullable = true)
    private Long roleId;
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
}
